use super::*;
use lexer::*;

// ## 9. Specifying or overriding table values
// ### 9.a. BASE table

#[derive(Debug, Clone)]
pub struct Table;
impl Table {
	pub fn parse(r: &mut Lexer<'_>) -> Result<Self, Error> {
		r.expect(Event::LBrace)?;
		loop {
			match r.read_next()? {
				Event::RBrace => break,
				_ => {}
			}
		}
		Ok(Self)
	}
}
#[cfg(test)]
mod tests {
	use super::*;
	#[test]
	fn table() {
		_ = Fea::parse(
			"",
			&mut Lexer::new(
				r#"
table BASE {
    HorizAxis.BaseTagList     ideo romn;
    HorizAxis.BaseScriptList  latn   romn   -120    0, cyrl   romn   -120    0,
                              grek   romn   -120    0, hani   ideo   -120    0,
                              kana   ideo   -120    0, hang   ideo   -120    0;
} BASE;
"#,
			),
		)
		.unwrap();
	}
}
